using System.Collections.Generic;
using System.Text.RegularExpressions;
public static void Main()
string progName = Regex.Replace("MSc in Economics and Business Administration : International Design Business Management", @" ?\(.*?\)", string.Empty);
Console.WriteLine(MakeProgramNameReplacements(progName).Replace(" : ", "-").Replace(" ","-").ToLower());
public static string MakeProgramNameReplacements(string programName)
var dict = new Dictionary<string, string>(StringComparer.OrdinalIgnoreCase)
{ "Master of Business Administration", "mba" },
{ "Bachelor of Business Administration", "bba" },
{ "Bachelor of Science", "bs"},
{ "Business Administration", "ba"},
{ "Computer Information Systems", "cis"},
{ "Consumer Behavior", "cb"},
{ "Doctor of Business Administration", "dba" },
{ "Doctor of Philosophy", "phd" },
{ "Hospitality and Tourism", "hosp" },
{ "Human Resource", "hr" },
{ "Information Systems", "infosys" },
{ "Master of Science", "ms" },
{ "Accounting", "acct" },
{ "Accountancy", "acct" },
{ "Administration", "admin" },
{ "Communication", "comm" },
{ "Entrepreneurship", "entrep" },
{ "Information", "info" },
{ "Infrastructure", "infra" },
{ "International", "intl" },
{ "Leadership", "lead" },
{ "Management", "mgmt" },
{ "Philosophy", "phil" },
var newstr = dict.Aggregate(programName, (current, value) => current.Replace(value.Key, value.Value));