clean up command space after command entry.