simplified palindrome function

input string, reverse string, check for match between string and
reversed string