Rolled back changes to GetStringValue function in Lua