private object parseArgumentString(string str) { int colonIndex = str.IndexOf(':'); // use index instead of Split so that colons can be part of a string return ResourceManager.ParseItemDataValue(str.Substring(0, colonIndex), removeOuterBraces(str.Substring(colonIndex + 1))); }