Heesob Park wrote:
> You can do it using regular expression :
> 
>  'hllo'.split(//u)[0, 2].to_s  -> h

thanks. even if 'hllo'[0, 2] looks better, this works.