String.Substring
can do that:
column = column.Substring(0, column.Length - 2);
You can use it to roll your own RemoveFromEnd
:
public static string RemoveFromEnd(this string s, string suffix)
{
if (s.EndsWith(suffix))
{
return s.Substring(0, s.Length - suffix.Length);
}
return s;
}