private string EnforceTrailingSlash(string url) { return url.Trim().EndsWith("/") ? url : url.Trim() + "/"; }