Not quite. Your code will replace all vowels in newText, but the OP said this:

I am trying to overwrite the last character in newText with a specific character in vowels.