private static void StripTrailingZeroes(StringBuilder buf) { // while(*--s == '0') ; // s++; int bl = buf.Length; while (bl-- > 0 && buf[bl] == '0') { } // empty buf.Length = bl + 1; }