I have a list of profane words that I compare against user input: (using Django)
def check_profanity(string): if string is not None: import os