def clean_string(s: str, extra_chars: str = ""):
    """Method to replace various chars with an underscore and remove leading and trailing whitespace

    Parameters
    ----------
    s : str
        string to clean
    extra_chars : str, optional
        additional characrters to be replaced by an underscore

    Returns
    -------
    s: str
        clean string
    """
    chars = "-.()%" + extra_chars
    for char in chars:
        s = s.replace(char, "_")
    s = s.strip()
    return s