Given an input string, when the first and last letters are equal, print the string with the first and last letters removed. Otherwise, print the original string.