updating tabs to spaces where needed