transform from spaces to tabs