match() returns the first index