replace contains with value comparing