def parse_string(text):
    """Parse a string to a string (removing single and double quotes)."""
    if len(text) >= 2 and text[0] in ('"', "'") and text[-1] in ('"', "'"):
        text = text[1:-1]
    return text.strip()
