Strip newlines from debug output in cosimulation mode