`if palindrome(line)` is enough.