main =
[ "boo"
, "A man, a plan, a cat, a ham, a yak, a yam, a hat, a canal-Panama!"
, "A tin mug for a jar of gum, Nita."
, "A Toyota! Race fast, safe car! A Toyota!"
]
checkPalindrome s
show s
++ " is a palindrome."
aW1wb3J0IERhdGEuQ2hhcgptYWluID0KICBtYXBNXyAocHV0U3RyTG4gLiBjaGVja1BhbGluZHJvbWUpCiAgICAgICAgWyAiYm9vIgogICAgICAgICwgIkEgbWFuLCBhIHBsYW4sIGEgY2F0LCBhIGhhbSwgYSB5YWssIGEgeWFtLCBhIGhhdCwgYSBjYW5hbC1QYW5hbWEhIgogICAgICAgICwgIkEgdGluIG11ZyBmb3IgYSBqYXIgb2YgZ3VtLCBOaXRhLiIKICAgICAgICAsICJBIFRveW90YSEgUmFjZSBmYXN0LCBzYWZlIGNhciEgQSBUb3lvdGEhIgogICAgICAgIF0KY2hlY2tQYWxpbmRyb21lIHMKICB8ICg9PSkgPTw8IHJldmVyc2UgJCBtYXAgdG9VcHBlciAkIGZpbHRlciBpc0xldHRlciBzID0KICAgIHNob3cgcyArKyAiIGlzIGEgcGFsaW5kcm9tZS4iCiAgfCBvdGhlcndpc2UgPSBzaG93IHMgKysgIiBpcyBOT1QgYSBwYWxpbmRyb21lLiIK
stdout
"boo" is NOT a palindrome.
"A man, a plan, a cat, a ham, a yak, a yam, a hat, a canal-Panama!" is a palindrome.
"A tin mug for a jar of gum, Nita." is a palindrome.
"A Toyota! Race fast, safe car! A Toyota!" is a palindrome.