I think it must be cmd.indexOf