testing for a palindrome homework