That claim seems problematic, only a legitimate prosecutorial representative of the people of the state can charge someone with a crime, a judge cannot, and a judge cannot act as a prosecutor, and amending a complaint is the prosecutors job, not a jduges.

In Calif that prohibition is People v Carlucci from the Cal Supremes.