The function f(x) takes a string input and returns the input string with the last character removed.

