removing stray tags and comments