Added logic to to remove leading and trailing white space from group names along with changing spaces in between words down to onlt one space if there is more than that.