Actual submitted code for palindrome string check