update ab/insert-tab-space function