fixing the end word in plainText