def palindrome?(s) s == s.reverse end