palindrome method completed