making specs simpler, gave up the given/when/then syntax. Let's stick to good old jasmine :P
tidying up code and making more code private
restrict input chars according to mask char definitions