Use String::from_str() instead of the now deprecated to_owned()