replaced newlines with marks