using state.String() instead string(state).

related to #553.