simplify isPalindrome