Fix depreciated warnings: to_owned() -> to_string()