WIP groups: API addition

trim whitespaces