docs: def toString(val, join_char='\n'):
          """
          Turn a string or array value into a string.
          """
          if type(val) in (list, tuple):
              return join_char.join(val)
          return val