String utilities

You can access additional String methods in the API class gw.api.util.StringUtil. Type gw.api.util.StringUtil into the Gosu Scratchpad and press period to see the full list of methods.

For example, to perform search and replace, instead of the Java native method replace on java.lang.String, you can use the StringUtil method substituteGlobalCaseInsensitive.