kumo.string.replace kumo.string.replace(STRING, FROM, TO) Since: Version 2024.09.02-c5476b89 The functionality described in this section requires version 2024.09.02-c5476b89 of KumoMTA, or a more recent version. Replaces all matches of FROM with TO and returns the resulting string. assert(kumo.string.replace('this is old', 'old', 'new') == 'this is new')