public static StringBuilder TrimEnd(this StringBuilder sb) { return TrimEnd(sb, _defaultTrimChars); } /// <summary>Removes all trailing occurrences of the specified set of characters from the StringBuilder object.</summary>