dont store edits to insert the empty string
move reformat to cursortools.Document instead of Editor (rename DocumentString to Document)