Fix bug with group names leading whitespaces