code: public void insertStringBefore(Node node, String str){
          boolean startingNode = this.node==node;
          int cp[] = StringUtil.toCodePoints(str);
          for(int i=cp.length-1; i>=0; i--){
              Node newNode = new Node();
              for(Edge edge: node.incoming()){
                  if(!edge.loop())
                      edge.setTarget(newNode);
              }
              newNode.addEdgeTo(node).matcher = new Any(cp[i]);
              node = newNode;
          }
          if(startingNode)
              this.node = node;
      }
docs: /*-------------------------------------------------[ String Related ]---------------------------------------------------