private static void FSet(World world, string str) { string[] fargs = Regex.Match(str, @"\(.*?\)").Value.Replace("(", "").Replace(")", "").Trim().Split(','); string port = fargs[0].Trim(); bool value = Convert.ToInt32(fargs[1].Trim()) == 1; world.SetPortValue(port, value); }