Fetching details from the dictionary...

substitute for ...
「替わり」 has another reading with different meanings.
バター替わりにオリーブ油を使う。
I use olive oil as a substitute for butter.
机替わりに段ボールを使った。
I used a cardboard box as a substitute for a desk.
ご飯替わりにパンを食べた。
I ate bread as a substitute for rice.