The function f(x) takes a string as input and transforms each character in the string to produce the corresponding output character.
