adding isPalindrome test TODO make it private and still use the ATs