Convert state to string value.