Added exercise 6: Capitalize each word in a string.