delete last comma in output stream