while l=gets l.gsub! /\t+/, "\t" puts l end