Strip spaces from group names upon creation

More stripping! :dancer: 
This partially fixes #1024 - The bug is gone, but validation errors still need to be displayed. I opened up #1248 for that task.