Strip extra whitespace from lines after stripping gcode comments