I\'m trying to convert an all-uppercase string in Ruby into a lower case one, but with each word\'s first character being upper case. Example:
convert \"MY STRING HE
"HELLO WORLD HOW ARE YOU".gsub(/\w+/) do |word| word.capitalize end #=> "Hello World How Are You"