Add command format check