string text = project.ExecuteMacro(project.Variables["title"].Value);
text = Macros.TextProcessing.ToLower(text, "All");
text = Macros.TextProcessing.Translit(text);
text = Macros.TextProcessing.Replace(text, "[^a-z0-9]+", " ", "Regex", "All");
text = Macros.TextProcessing.Replace(text, "[\\s\\t]+", "-", "Regex", "All");
text = System.Text.RegularExpressions.Regex.Replace(text, @"^[-]+|[-]+$", "");
return text;