palindrome judge & xctest