created isPalindrome() and a test to see if it works.