Write a program to check string is palindrome or not.