pub fn replace_range(text: String, range: TextRange, replace_with: &str) -> String