function ispalindrome(s) return s == string.reverse(s) end