// <summary>
///if sToFind not found, then original string should be returned
/// Otherwise removeBefore
/// </summary>
/// <param name="str"></param>
/// <param name="sToFind"></param>
/// <returns></returns>
public static string RemoveBefore(this string str, string sToFind)
{
int num1 = str.IndexOf(sToFind);
if (num1 > 0)
{
return str.Remove(0, num1);
}
else
{
return str;
}
}