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

Why make it convoluted when ruby makes it so easy to use regexps:

 >> puts 'hllo'[/.{2}/um]
h