Trying to replace line breaks line by line - adding a little bit of documentation