Note that the Substring() method takes two arguments: the starting index (which is zero-based) and the length of the substring to extract. In this case, we're specifying the starting index as 0 and the length as the index of the specified character plus one, which gives us the substring up to and including the specified character.