use goto instead of function call
Print error message and exit for improper -M usage.
whitespaces are effective in character class