program to take phrase and check if it is a palindrome