Remove space when removing DOM element class