Why is this not filtering?

I have this, where you type in what you want, and it displays it on the sign, but it doesn’t filter anything.

Strings wont be filtered in studio(hence why you’re able to swear in studio chat) you must test that feature inside an actual server.