The function f(x) takes a string input x and returns a string output where the first letter of each word in x is capitalized.

