script to strip tab from end of line