Replace all ~"" with "".to_owned().