Fixed Ruby 1.8 when getting first character of string