tweaked insert behavior to remove extra blank line after inserting after deleting everything