private static string PorterForString(string input) { string[] words = input.Split(' '); string output = ""; foreach (var item in words) { output += Porter.TransformingWord(item.Trim(new Char[] { '(', ')', '.', ',' })) + " "; } return(output); }