Palindrome checker; fifty lines turned into one line