revert changes to `format!`, keeping the fix for `to_string`