Use search instead of (less efficient) match