Yes. Both of your interpretations are correct.
Please check back in an hour or two in case another English tutor has a different interpretation.
Replace with vs. Replace for?
1. Replace white rice with brown rice.
Does this mean use brown rice instead?
2. Replace white rice for brown rice.
Does this mean use white rice instead?
2 answers
Yes, I agree with both your answers.