Jari,

> Is there any such solution?

Here is a regular expression one:

"longstring" =~ /^long/

HTH,
Peter
___
http://www.rubyrailways.com
http://scrubyt.org