Added a new enumeration method: parseNames

Enum.parseNames(...) allows parsing a mask instead of a single value.

Tests have been updated to reflect this change.