def normalize_str(main_string: str) ->str:
    """Replace a string with a list of substrings."""
    for elem in ['.', '-']:
        if elem in main_string:
            main_string = main_string.replace(elem, '_')
    return main_string
