create function to test for Palindrome