s = ".sdrawkcab si gnirts sihT" puts s.reverse puts s s.reverse! # => "This string is backwards." puts s # => "This string is backwards."