def strip_quotes(S):
    """
    String leading and trailing quotation marks
    """
    if '"' in S[0] or "'" in S[0]:
        S = S[1:]
    if '"' in S[-1] or "'" in S[-1]:
        S = S[:-1]
    return S