def add_slash(m):
    """
    Helper function that appends a / if one does not exist.
    Prameters:
        m: The string to append to.
    """
    if m[-1] != "/":
        return m + "/"
    else:
        return m