public StrBuf set(long index, long ch) { try { int i = (int)index; if (i < 0) i = sb.Length+i; sb[i] = (char)ch; return this; } catch (System.ArgumentOutOfRangeException e) { throw IndexErr.make(e).val; } }