Reduced String Copies and AI

In my Rust program I have code that tries to normalize the arguments passed into it. The idea is that if an AI calls my function, I want the function call to succeed even if it makes a mistake in the syntax. String Copies I had repeated string replace calls, and to normalize the name parameter about 5 passes were done, and 5 copies or more were made of the string. This is not a big performance…