fix inserts and don't generate extra noise on trailing blanks, RT#29053