Convert tabs to spaces, remove extra whitespace