The function f(x) takes a string input and returns the first word of the string.
