The function takes a string input and appends the last letter of the input string to the string itself.
