I want to change the last-second letter of each word in capital letter. but when my sentence contain of a word with one letter the program gives an error of (IndexError: str