Check for palindrome

A string is a palindrome if it is read the same from forward or backward.
Ex. dad, madam, refer, radar, etc.