Standard and proper palindrome detectore. Common UI interview test