add indexOf with 2 arguments and LastIndexOf with 1 and 2 arguments