Support search patterns containing spaces