add basic fromIndex param to indexOf and lastIndexOf