replace spaces to tab