indexOf and lastIndexOf