title: Need to trim a string till end after a particular combination of characters
body: <p>I need help in trimming everything in my string till end after it encounters the first "\0"</p>
  
  <p>So:</p>
  
  <p><strong>"test\1\2\3\0\0\0\0\0\0\0\0\0_asdfgh_qwerty_blah_blah_blah"</strong></p>
  
  <p>becomes</p>
  
  <p><strong>"test\1\2\3"</strong></p>
  
  <p>I am using c#. Help would be greatly appreciated.</p>
  
  <p>Thanks.</p>