def del_comment(string):
    """Delete the comment from the parameter setting string.

    Parameters
    ----------
    string : str, default None
        The parameter setting string probably with the comment.

    Returns
    -------
    string : str
        The parameter setting string without the comment.
    """
    return string.split('#')[0].replace(' ', '')