fwiw - As much as I like the syntax "string".palindrome? I am not a bit fan of extending core Ruby classes(I used to), if this was production code I would strongly recommend to use a different approach(maybe a decorator?) .