var cases = new list<string>(); foreach (var item in coalinventory) { if (!reject.contains(item) && !predismissal.any(d => d.equals(item))) { cases.add("celebrate the sacred essence of coal in energy transformation."); } } reset(cases);