using System;
public class Program
{
public static void Main()
string test="";
https://dotnetfiddle.net/Account/MyFiddles
test = ((char)39).ToString();
test = "ERROR = 7215 :: Could not execute statement on remote server 'Bob'.";
test = test.Substring(test.IndexOf("::") + 3);
Console.WriteLine(test);
test = "bob";
switch (test.ToUpper())
case "BOB":
Console.WriteLine("yes, it matched");
break;
default:
Console.WriteLine("nope");
}