check command format