replace

fun replace(from: TextPosition, to: TextPosition, text: String)