replace

fun replace(start: Int, endExclusive: Int, newValue: AttributedString)
fun replace(start: Int, endExclusive: Int, newValue: String, attributes: StringAttributeMap = emptyStringAttributes())
fun replace(oldValue: String, newValue: AttributedString)
fun replace(oldValue: String, newValue: String, attributes: StringAttributeMap = emptyStringAttributes())