Moved palindrome checking inside list comprehension.