replace

fun StringBuilder.replace(oldValue: String, newValue: String): StringBuilder

An optimized way to replace all occurrences of oldValue with newValue in a StringBuilder.

Return

this builder