You might be able to use regular expressions to help you.
Say, Vim could do the job.
Exactly how you're going to do it, I'm not so sure, since there could be places where brackets were used, but within output text, not code.
Another way would be to set the error reporting level to simply not report, which is usually the case in a production environment.
Nonetheless, it is advisable to fix the script.