Updated palindrome? method - haven't tested for syntax correctness