def node2str(node, strip=True):
    """Return lilv.Node to string.

    By default, strips whitespace surrounding string value.

    If passed node is None, return None.

    """
    if node is not None:
        node = str(node)

        if strip:
            node = node.strip()

    return node