Seems no one has posted this yet:
public static class StringExt
{
public static string Truncate(this string s, int maxLength)
{
return s != null && s.Length > maxLength ? s.Substring(0, maxLength) : s;
}
}
Using the && operator makes it marginally better than the accepted answer.