def removelatex(string):
    """
    Remove the latex $ symbols from a unit string

    Parameters
    ----------
    string : str
        String containing latex math mode $ delimiters

    Returns
    -------
    string : str
        Input string with $ delimiters removed
    """
    if '$' in string:
        string = string.replace('$', '')
    if '\\' in string:
        string = string.replace('\\', '')
    return string