try this in C1 :
=SUBSTITUTE(B1,"replace",A1)
copy down

Hope this helps