Allow space in mandate id and simplified regexp

Same as  #30 but with a simplified regular expression.