static S dropGlobalID(S s) { s = rtrim(s); if (!endsWith(s, "]")) ret s; Matcher m = regexpMatcher("\\[id: [a-z]{" + globalIDLength() + "}\\]$", s); ret m.find() ? rtrim(takeFirst(regexpMatcherIndex(m), s)) : s; }