The function f(x) appears to capitalize the first letter of each word and then joins them together with a space in between.

