replaceText

fun Path.replaceText(oldText: String, newText: String)(source)