docs: protected String replace(CharSequence text, boolean firstOnly){
  		StringBuilder sb = new StringBuilder();
  		AutomatonMatcher am = runAutomation.newMatcher(text);
  		int lastEnd = 0;
  		while (am.find() && (firstOnly == false || lastEnd == 0)){
  			sb.append(text, lastEnd, am.start());
  			lastEnd = am.end();
  			sb.append(replacement);
  		}
  		sb.append(text, lastEnd, text.length());
  		return sb.toString();
  	}