How can this be minimized?
// remove accent
byte[] bytes = System.Text.Encoding.UTF8.GetBytes(input);
input = System.Text.Encoding.UTF8.GetString(bytes);
// make it all lower case
input = input.ToLower();
// remove stop words
input = System.Text.RegularExpressions.Regex.Replace(input, "\\b" + string.Join("\\b|\\b", ENGLISH_STOP_WORDS) + "\\b", "");
// remove entities
input = System.Text.RegularExpressions.Regex.Replace(input, @"&\w+;", "");
// remove anything that is not letters, numbers, dash, or space
input = System.Text.RegularExpressions.Regex.Replace(input, @"[^a-z0-9\-\s]", "");
// replace spaces
input = input.Replace(' ', '-');
// collapse dashes
input = System.Text.RegularExpressions.Regex.Replace(input, @"-{2,}", "-");
// collapse spaces
input = System.Text.RegularExpressions.Regex.Replace(input, @"\s+", " ").Trim();
// Trim dashes and spaces
input = input.Trim(' ').Trim('-').Trim(' '); // double trim the spaces incase dashes were covering them
return input;