public StyledString insert(char ch,int offset) throws StringIndexOutOfBoundsException {
  if (offset < 0 || offset > builder.length()) {
    throw new StringIndexOutOfBoundsException("Invalid offset (" + offset + ")");
  }
  builder.insert(offset,ch);
  return this;
}

public StyledString insert ( char ch , int offset ) throws StringIndexOutOfBoundsException { if ( offset < 0 || offset > builder . length ( ) ) { throw new StringIndexOutOfBoundsException ( "Invalid offset (" + offset + ")" ) ; } builder . insert ( offset , ch ) ; return this ; }
inserts the character at the given offset . the inserted character will get the styler that is already at the given offset .
