doc: show states as strings, as suggested by @andreas