Added support for string input to ThermodynamicState init()