M0/M1 Message Fix

M0/M1 in gcode might pass spaces, so skip spaces before checking for nul.