def standardise_name(name):
    """
    Standardise field names: Survey (Title) -> survery_title
    """
    result = name.lower().replace(" ", "_").replace("(", "").replace(")", "")

    # remove any starting and ending "_" that have been inserted
    start_loc = 1 if result[0] == "_" else 0
    loc = result.rfind("_")
    end_loc = loc if loc == (len(result) - 1) else len(result)

    return result[start_loc:end_loc]