Removing unnecessary stuff from HTMLBuffer