palindrome check added