Fixed for latest master (~"str" -> "str".to_owned())