I faced a problem where invisible character \\0 which is pretty like a \'white space\' not considered as white space by the string.IsNullOrWhiteSpace method. I
\\0
NULL string IS NOT the same as an empty string or white space