I\'d like to write an extension method to the String class so that if the input string to is longer than the provided length N, only the first
String
N
string.Substring(0,n); // 0 - start index and n - number of characters