The function f(x) takes a string input and returns the input string with all spaces removed and the first letter of each word capitalized.
