add 'end of line' characters to traverse log strings