Allow zero hyphens or two hyphens, but never just one

Closes #2.