Yes...DannyJ is abslutely right.
However in case if you want to use the formula only then below might help

=SUBSTITUTE($B$1,"food",$A1)