Added palindrome functionality