The function f(x) takes a word input and extracts the first letter of the word.
