using uCalcSoftware; var uc = new uCalc(); using (var s = new uCalc.String("user:admin")) { var key = s.Before(":"); Console.WriteLine(key); }