replace spaces to tabs