replace match with search method