Remove some &str::to_owned() uses or replace them with to_string()