finished palindrome check