def wrap(string, char="'"):
    """Wrap a string in a specified character.

    Parameters
    ----------
    string : str
        Input string.
    char : str
        The character to wrap around the string.

    Returns
    -------
    str
        The input string wrapped in single quotes.
    """
    return char + string + char
