program to check if the string is palindrome or not