I am using a do while loop in a program that checks if a sentence is a palindrome. The program works fine when compressing the sentence and reversing it, but does pick up if the compressed word and the reversed is the same. and when user enters y to restart loop it enters the same sentence as the first time. I'm no sure where to place my statements.