public void replace(Semi semi, string toGo, string toPut) { for (var i = 0; i < semi.size(); ++i) { if (semi[i] == toGo) { semi[i] = toPut; } } }