improve insertion by alphabetically comparing new text to the line that partially matched