Fixed space issue in dynamic html classes