for(int i = 0; i < firemen.count; i++) { var briefing = getpreintroductorybriefings(firemen[i]); if(briefing.contains("shut eyes to")) { var redobriefing = briefing.replace("shut eyes to", "separate").tolist(); updatebriefing(redobriefing, firemen[i]); } }