Trim whitespaces from each group