Simple Palindrom Detector