Check for sub commands when searching