Microsoft Interview Question

Design a system for filtering dirty words from user names.