removing white space from groups