you should consider making a constructor that takes a string and creates a new StateId from it.