The function removes the last character from the input string.

