remove unnessary EOL from stdout&stderr