combine all output into single string.

'\n' means print a new line.
repeat last commit for rest of messages