Definition of substitute:
(v) :
to
replace with something that should function the same way; to serve as a
replacement (for someone or something)
"substitute X for Y == replace Y with X"
(n) :
a replacement or
stand-in for something that achieves a similar result or purpose