Somebody never learned their US Constitution, 1st Amendment.
Let’s give him the benefit of the doubt, maybe he was out with the flu on the day that was taught?
While in HS, I successfully got obscene T-shirts banned in my hometown in Georgetown, SC. You really need to better understand what the 1st amendment is about.
Virginia Beach has a similar ordinance against speech - and I'm sure many jurisdictions do.
It's not a cost to the state but a financial benefit - like enforcing speed limits.