Completed palindrome? function