public StrBuf insert(long index, object x) { string s = (x == null) ? "null" : toStr(x); int i = (int)index; if (i < 0) i = sb.Length+i; if (i > sb.Length) throw IndexErr.make(index).val; sb.Insert(i, s); return this; }