when there is no string for the key, return the key wrapped in square brackets.