The function f(x) seems to return the input word unchanged if it consists of two words which both start with a capital letter. If the input doesn't meet this criterion, the output is undefined.

