The function takes a string input and capitalizes the first letter of each word in the input string.

