Added basic palindrome detection