Dmitry Buzdin wrote: > Then why not call to_i on a whole string? > > " 1 45.3456 ".to_i > " 1 45.3456 ".to_f > > It will find the first number and convert it to Fixnum or Float. > > Dmitry You're absolutely right, Dmitry... .strip() is not necessary. But I tend to be a bit anal-retentive about such things :o|