def quote_string(s: str, force: bool=False) ->str:
    """Sometimes wraps strings in double quotes, depending on the content and force parameter.
    
    Description:
        This function provides conditional wrapping of strings inside double quotes. 
        If the input string contains a space, OR force is set to True, then the input string will 
        always be quoted.
        If the input string does not contain a space, AND force is set to False, then the input 
        string is returned unmodified.

    Args:
        s: The string that needs to be wrapped in quotes (maybe)
        force (optional): Whether to force quotes around the string even if not needed. Defaults to False.

    Examples:
        >>> quote_string("nevermore", False)
        'nevermore'
        >>> quote_string("nevermore")
        'nevermore'
        >>> quote_string("nevermore", True)
        '"nevermore"'
        >>> quote_string("never more", False)
        '"never more"'
    
    Returns:
        The string, maybe wrapped in double quotes
    """
    return f'"{s}"' if force or ' ' in s else s
