Convert Option<&str> to Option<String>

You might be interested in What is the idiomatic way to convert &str to String?