def quote_filter(value, single_quotes=False):
    """
    Wraps an input string in quotes.

    Args:
        value (string): the original string
    Returns:
        string: the quoted string
    """
    if single_quotes:
        return "'" + str(value) + "'"
    else:
        return '"' + str(value) + '"'
