High level string insert function in preparation for undo