Change &str.into_string() to &str.to_owned()

Fixes some warnings