line_split = cleaned_string.split() for word in filler_words: for i in line_split: line_split[i] = line_split[i].lower()