public FormatStringsResponseMessage Handle(FormatStringsRequestMessage preFormattedStrings) { if (preFormattedStrings.PreFormattedStrings == null) { throw new ArgumentNullException(nameof(preFormattedStrings)); } var formattedStrings = new List <string>(); foreach (var preFormatedstring in preFormattedStrings.PreFormattedStrings) { var PostContigious = _formatService.FormatContigious(preFormatedstring); var PostReplacement = _formatService.Replace(PostContigious, preFormattedStrings.CharacterToReplace); var PostRemove = _formatService.Remove(PostReplacement, preFormattedStrings.CharacterToRemove); var PostTruncate = _formatService.Truncate(PostRemove, 15); formattedStrings.Add(PostTruncate); } return(new FormatStringsResponseMessage(formattedStrings)); }