remove useless space at the end of the group's name