changed comparing method for commands : only check the firsts chars