Add method for getting stateName.