string RecievedMessage = "!notice I love cake."; if (RecievedMessage.Length > 7 && dug[0] == Convert.ToChar("!")) { string Operation = RecievedMessage.Substring(0, 7); string Value = RecievedMessage.Substring(8); switch (Operation) { case "!notice": { break; } case "!summon": { break; } case "!unreal": { break; } }