Only do newline replacement in strings