diff --git a/instructionstokeywords.py b/instructionstokeywords.py index 3149c1d..931f199 100644 --- a/instructionstokeywords.py +++ b/instructionstokeywords.py @@ -5,7 +5,7 @@ instructionsfile = open('instructions.txt', 'r') def commandStrip(sentence): for line in dotsfile: - line = line.strip('\n').replace(line, "") + sentence = sentence.replace(line.strip('\n'), '') return sentence def searchKeyWords(sentence):