public String Generate(IExchangeSettings settings, String source) { if (settings is null) { throw new ArgumentNullException(nameof(settings)); } if (source is null) { throw new ArgumentNullException(nameof(source)); } StringBuilder builder = new StringBuilder(source); foreach ((Char From, Char Into) in settings.CollectValues()) { builder.Replace(From, Into); } return(builder.ToString()); }