Remove the trailing spaces of active, current & home classes