Change palindrome method to private