Remove String related codes for Ruby 1.8