Rewrote code for inserting blank for insertions/deletion