Fixed type enumeration validation to accept space (issue #309)