Remove redundant whitespaces and convert tabs to spaces wherever possible.