private static bool IsValidRoomName(string name) { return !String.IsNullOrEmpty(name) && Regex.IsMatch(name, "^[\\w-_]{1,30}$"); }