replacing replace with removeIfContains, maybe that will fix something