Command string check