title: VB.NET - string of nulls
body: <p>I have a string value read in from a CSV file. The CSV file contains 7 <code>NULL</code> bytes, I have confirmed this by opening it in a hex editor and sure enought there are 7 <code>0x0</code> bytes in there. This string is causing me pain.</p>
  
  <p>In vb.net when I check the <code>strlen</code> of this string it returns a value of 7 and if i do a <code>String.IsNullOrWhitespace</code> it returns <code>false</code>.</p>
  
  <p>I cannot understand why this is? I have split the string into a byte array and each byte is <code>0x0</code>, which is null/nothing. A <code>string = Nothing</code> comparison also fails.</p>
  
  <p>I want to be able to replace this string with a string of my own but I cannot do this dynamically. Any suggestions why this string returns a length of 7 even though each byte is <code>0x0</code>?</p>