Help new to c# and need explanation with substring - C#