def fix_quotes(tree: str):
    """Replace all quotes in the tree with single apostrophes."""
    return tree.replace("''", "'") \
               .replace("``", "'") \
               .replace('"', "'")