Put palindrome test into helper lib