def remove_quotes(val):
    """
    Remove surrounding quotes from a string.

    :param val: The string to remove quotes from.
    :type val: str
    :returns: str
    """

    if val.startswith(('"', "'",)) and val.endswith(('"', "'",)):
        val = val[1:-1]
    return val