This utility method can be used to determine whether a string is a valid state.
Currently, states must be one of
State string to validate.
throws no exceptions thrown
final - this method should not be overridden.
This function should be called statically.