internal void StoreLiveCourseRunCount() { String mainTotal = (FormCompletionHelper.StoreObjectText(firstCourseRunsCount)); String mainTotalString = mainTotal.Replace(")", "").Replace("(", "").Replace(" ", ""); try { mainCourseRunCount = Int32.Parse(mainTotalString); } catch (FormatException e) { Console.WriteLine(e.Message); } Console.WriteLine("Main run count: " + mainCourseRunCount); }