Making progress with removing dummy spaces when adding new interim lines, however a new problem of cursor location when new lines are formed has appears