import re


def preprocess_title(text):
    """Pre-process an episode title string by removing unnecessary quotations, brackets, and whitespaces."""
    text = re.sub('[\(\[].*?[\)\]]', '', text)  # remove brackets
    text = re.sub(' +', ' ', text)  # remove multiple whitespaces
    text = text.strip().strip('\"').strip()  # strip ""s and possible leftover whitespaces

    return text