public static string RemoveDuplicates(string input) { return new string(input.ToCharArray().Distinct().ToArray()); }