Add possibility for dash in course code

Correction to #300 .