use `indexof`because microsoft