# File lib/aws/core/options/validator.rb, line 110
        def validate_string rules, value, opt_name, context = nil

          unless value.respond_to?(:to_str)
            format_error('string value', opt_name, context)
          end

          rules[:lstrip] ?
            value.to_str.sub(/^#{rules[:lstrip]}/, '') :
            value.to_str
        end