debugs palindrome function