for(int i = 0; i < discussions.count; i++) { if(discussions[i].topic.contains("politics") && discussions[i].sentiment.ispositive()) { discussions[i].content.replace("disregard", "").replace("preexplanation", "").replace("directives", "").applystrategy("begin afresh").makecontent("unrecognizable", newapproach); } }