public string TransformText(Transformation transformation, string sentence) { sentence = SanitizeText(sentence); if (string.IsNullOrEmpty(sentence)) { return(string.Empty); } return(_transformationFactory.Create(transformation).Transform(sentence)); }