Convert tabs to spaces, remove trailing slash