Replace Invisible Characters – Control Chars By fransiscuss On February 23, 2015 In .NET & C# You can use this function to replace the invisible chars Regex.Replace(s, @"[^\x20-\x7F]", ""); Previous Camel Case for Web Api 2 Next Action Filter in WebApi 2