in reply to Re^3: String parsing
in thread String parsing

The logic would be in the displayer. If the hash has one element, join with the parent with an underscore. It works in all the OP's cases.