Fix wordplay to be more tolerant of line endings