import re


def sanitize(in_str: str) -> str:
    """
    Remove whitespace from string and fix some characters

    :param in_str: input string
    :return: processed string
    """
    whitespace_rem = re.sub(r"\n+", "\n", in_str.replace("\r", "").strip())
    quote_san = re.sub(u"\u2018|\u2019", "'", whitespace_rem)
    dub_quote_san = re.sub(u"\u201c|\u201d", '"', quote_san)
    dash_san = re.sub(u"\u2014", " - ", dub_quote_san)
    invis_san = re.sub(u"\u00A0", "", dash_san)
    return invis_san