Fix assertions for palindrome specs