fix newline, multiple matches