# File lib/formvalidator.rb, line 829
    def match_state(state)
      state = (state.class == String) ? state.intern : state
      index = STATES.index(state)
      (index) ? STATES[index].to_s : nil
    end