Strings : Substring
// linqpad, as C# program runas
void Main()
{
//1. Determine if the string contains 'scion'
//2. If yes, ((true)) take the string get the
//index of '-', then trim the hyphen, then trim
//everything to the right of the hyphen.
var series = "Scion-tC";
//var modSeries = series.Substring(0,5);
if (series.Contains("Scion"))
{
Console.WriteLine(series.Substring(0,5));
}
//Console.WriteLine(series);
}
// Define other methods and classes here