def un_capitalize_string(s: str) -> str:
    """Un-capitalise all parts of a string and divide them by "_" """

    split = []
    for part in s.split(" "):
        split.extend(part.split())

    return "_".join([part.lower() for part in split])