This can just be `&str`, and use `.to_owned()` (or `.to_str()`) below.