Revised reverse_string.rb