String process(String text, Map<String, String> purposeDict) { purposeDict.forEach((key, value) { text = text.replaceAll(key, value); }); return text.trim(); }