Could use strings/starts-with?(uri, "//") here.