I have a string value with garbage and can not strip out the bad (or I believe null) characters.
The string looks like this:
"XYZ Corporation\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
I believe these are escape sequences showing null values. I tried TrimEnd, Replace, Trim, etc. and can not find a way to strip out all of the "\0" occurrences.
Any idea what I can do? It's driving me nuts.