Throw an IllegalArgumentException if the string is not what is expected?

But again; an enum would be better.