strip white spaces before doctype and after html close tag