string = "Play soccer tomorrow from 2pm to 3pm @homies" times = ['tomorrow', 'from 2pm to 3pm'] removed_times = string for x in times: removed_times = removed_times.replace(' ' + x + ' ', ' ') print(removed_times) #Play soccer @homies