Fixed issue where similar named teams couldn't be created even if they ...

...only matched by prefix.