palindrome check

isPalindrome function