remove whitespace before doctype
remove extra newline after doctype. remove extra space after self closing tags