updated documentation on checkPalindrome