remove brackets and unused offset information for gcode output