add basic fromIndex to indexOf and lastIndexOf