Try to create a category with a name like this:
group 1 category
It should return an error message:
Slug is invalid
However, the category was still created, with the slug
group-1-category, so it must not have been invalid after all. Editing it and changing the name (not the slug) will also throw the error, but still apply the change.