Bugfix for coding error.

Forgot == assertion on substr() check