import re


def clean_names(words: list) -> list:
    """replace space with _ and remove any non letter"""
    for i, word in enumerate(words):
        word = re.sub(' ', '_', word)
        word = re.sub('[^a-zA-Z_]', '', word.lower())
        words[i] = word
    return words