the cursestring struct works adding and removing characters in the edit window