Updates whitespace function to convert tabs to 2 spaces.