The rule applied by the function f(x) is that it returns the last word of the input string.
