def format_to_str(obj):
    """Create string from object, concatenate if list."""
    if obj is None:
        return ''
    res = ''
    if isinstance(obj, list):
        res = ' '.join(obj)
    else:
        res = obj
    return res
