Change ScriptObject parameter to string instead of const char*