pub fn replace<E>( s: &str, f: &dyn Fn(&str) -> Result<String, E>) -> Result<String, LzErr>where LzErr: From<E>,