remove excess spaces in output html