Very verbosely improved output parsing and ensured multi-line strings are handled