The function f(x) maps input strings to corresponding output strings.
