Adds a palindrome? method.