TGV:There is something else going on, since the word "class" does appear somewhere on the page (4th line from below). So the substitution algorithm is even weirder than you might have thought. Perhaps (PERHAPS!) they have a blacklist of all FORBIDDEN words plus a regexp-scanner for use of these words in compounds and they do not operate in the same way. Just a guess.
I did not see that one when I posted it. It really does seem like it's filtering according to some god-only-knows awful algorithm (or godawful monstruous side-effect infected regex nobody could ever maintain).
String.Replace (or whatever your preferred language offers for that) just doesn't cut it to obatin that kind of result.
Another option is that the poster wanted to have fun, or to give the "bleeping" effect TV networks are so fond of these days (particularly annoying on something like South Park, since it bleeps like there's no tomorrow) . That would explain the definitively random-looking effect like forgetting one in the middle.
I did a quick search and found other episodes where the word "classroom" is not affected. Might be that this is actually not a tech-WTF... So sad, it seemed like a nice candidate.