convert tabs to spaces in normalize() to simplify whitespace regexps
small simplifications