pub fn safe_replace_text( content: &str, old_str: &str, new_str: &str, ) -> Result<String, Error>
Safe text replacement with validation