Fixed StringIndexOutOfBoundsException

Closes dandelion/issues#140
The default group name is now always added

* Added a unit test
* Closes dandelion/issues#140