find out if a string is palindrome or not