* Fixed error in wxString::Replace
* Use uniform way to display scripting errors
* Use a SquirrelFunction for the ReplaceMacro function