state to string