public SpanManager replace(int start,int end,String str){
  sb.replace(start,end,str);
  if (calculateSrcPositions) {
    for (int i=0; i < end - start; i++)     ib.remove(start);
    for (int i=0; i < str.length(); i++)     ib.add(start,-1);
  }
  adjustLists(start,str.length() - (end - start));
  return this;
}

public SpanManager replace ( int start , int end , String str ) { sb . replace ( start , end , str ) ; if ( calculateSrcPositions ) { for ( int i = 0 ; i < end - start ; i ++ ) ib . remove ( start ) ; for ( int i = 0 ; i < str . length ( ) ; i ++ ) ib . add ( start , - 1 ) ; } adjustLists ( start , str . length ( ) - ( end - start ) ) ; return this ; }
replaces the content between start ( included ) and end ( excluded ) with a string
