Modified mkString to add a final new line.