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

