String replaceName(String path) { String result = path; itemMap.forEach((String key, RegexItem value) { result = result.replaceAll(value.from, value.to); }); return result; }