The function takes a string input and returns the input with each word capitalized.

