def remove_trailing_slashes(jshost):
    """
    Delete the end separator character if exists.
    """
    if jshost and jshost[-1] in ("/", "\\"):
        return jshost[:-1]

    else:
        return jshost