The function takes a string input and capitalizes all the words in the string.

