public String toString(boolean expand){
  StringBuilder acc=new StringBuilder();
  toString(acc,0,expand);
  return acc.toString();
}

public String toString ( boolean expand ) { StringBuilder acc = new StringBuilder ( ) ; toString ( acc , 0 , expand ) ; return acc . toString ( ) ; }
convert a re to a string .
