def _format_value(value):
    """Convert value to string, handling special cases."""
    if isinstance(value, (list, tuple)):
        return ' '.join(value)
    if value is None:
        return ''
    return value
