static NodeTextRep appendToNodeText(NodeTextRep nodeRep,String str){
  NodeTextRep result=nodeRep.clone();
  result.nodeText[result.nodeText.length - 1]=result.nodeText[result.nodeText.length - 1] + str;
  return result;
}

static NodeTextRep appendToNodeText ( NodeTextRep nodeRep , String str ) { NodeTextRep result = nodeRep . clone ( ) ; result . nodeText [ result . nodeText . length - 1 ] = result . nodeText [ result . nodeText . length - 1 ] + str ; return result ; }
returns a brand new nodetextrep that ' s equal to the noderep argument except that the string str has been appended to the last line .
