from functools import reduce


def replace(token: str) -> str:
    """
    Receives a word which could be a number or a word or a word
    with symbols and if the string has any af the specified
    symbols they will be removed.

    Attributes
    ----------
    symbols_toRemove : [str]
        The symbols we want to remove in the string

    Parameters
    ----------
    token : str
        The word which is going to be cleanned.

    Returns
    -------
    token : str
        A string without symbols like ".", ",", "'", "(", ")", "/".
    """

    symbols_toRemove = [".", ",", "'", "(", ")", "/"]

    try:
        float(token)
    except ValueError:
        # Use of the function reduce to apply the replace to each symbol
        token = reduce(lambda x, y : x.replace(y, ""), symbols_toRemove, token)

    return token