C# - Update IsValid() to fix a bug /w default char