I am trying to run a check to see if a string is just white space. I tried using trim like this:
if( dataIn[ i ].trim() == "" )
{
throw new MailRecordException( "Line: " + lineNumber + ", Field: "
+ fieldNumber + " :Blank Field" );
}
But it never registers as true. How could I run a check to see if a string is only whitespace?