Update replace-for-with-foreach.md

Removed obsolete uses of var.