Why don't we leave the while loop after a match? Does not make sense to search any further, does it?