From: Stefano Crocco Date: 2008-08-21T17:51:22+09:00 Subject: Re: STRING FUNCTIONS On Thursday 21 August 2008, Newb Newb wrote: > I have string. > In that i need to display the first element from String means Which > Function Should I use? > I Am Unable To Figure Out.. Try String#[] or String#slice, but since they return a number (the code of the first character) if you only specify an index, you'll need to pass the index and a length of 1, like this: "test string"[0,1] => "t" For more information, see the documentation for the String#slice method (ri String#slice). Stefano