import re


def clean_value(string: str) -> str:
    """
    Function that uses regex based rules to clean a
    an input string. Function removes all other
    character that are not letters or numbers

    Parameters
    ----------
    string: String
        (The string thay will be preprocessed)

    Returns
    -------
    String
        Preprocessed string
    """
    # filter out special characters
    string = re.sub(r'[^a-zA-Z0-9]', " ", string)
    # remove any extra spaces
    string = re.sub(r"\s+", " ", string)
    return string