updated palindrome? method for numeric class