pub fn replace(contents: Cow<'_, str>, from: &String, to: &String) -> String
Replaces the from_string to to_string