Tabs to spaces.
Used sprintf for channel pattern building.