CHeck if it is a palindrome or not