public static String GetValidQueueName(this String name)
{
var cleanupAttempt = CompiledExpressions.NonAlphaNumericReplaceRegex.Replace(name, "")
.ToLower()
.Replace("--", "-");
if (!CompiledExpressions.AzureQueueValidationRegex.IsMatch(cleanupAttempt))
throw new ArgumentException("Cannot Determine a valid queue name for the supplied string.");
return cleanupAttempt;
}