Make sure StringState is imported for substates.
Updated the documentation to match CDD version 2.