public void LoadFromString(TitleKindTable allTitles, string titleIDs) { char[] separator = new char[] { ' ', '\n', '\r', '\t' }; string[] strArray = titleIDs.Split(separator, StringSplitOptions.RemoveEmptyEntries); TitleKind title = null; for (int i = 0; i < strArray.Length; i++) { if (allTitles.TitleKinds.TryGetValue(int.Parse(strArray[i]), out title)) { this.AddTitleKind(title); } } }