So, I'm making a form with an input for the username which doesn't allow bad words
<input pattern="^((?!swearword)(?!racism)(?!homophobic).)*$" title="No bad words, please" />
How can I add case sensitivity to the pattern, and, is this the best way to exclude bad words?