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