def stringify(value):
    """
    Return string ``value``, with quotes around if there is whitespace.

    :param value: Value to stringify
    :return: Stringified, possibly quoted, value
    :rtype: :class:`str`
    """
    rv = str(value)
    if len(rv.split()) > 1:
        return '"%s"' % rv
    return rv