lastIndex = scenarioIndex;
int lastValidChar = indexOfPreviousChar(originalString, scenarioIndex);
if (scenarioIndex > lastValidChar && lastValidChar >= 0) {
allEdits.addChild(new DeleteEdit(lastValidChar, scenarioIndex - lastValidChar));
allEdits.addChild(new InsertEdit(lastValidChar, SPACE));
}
}
}