"AD\thomas" -> "AD homas" # tab
"MAIN\nancy" -> "MAIN
ancy" # newline
"nancy" -> "nancy" # no domain, no problem
####
$domainID =~ (s/(AD|MAIN)\n/n/); # should not be
$domainID =~ (s/(AD|MAIN)\r/r/); # checked 3 times
$domainID =~ (s/(AD|MAIN)\t/t/); # before exiting
####
our %whitespace = ( "\f" => "f","\n" => "n","\r" => "r","\t" => "t" );
$netid =~ (s/(\s)/$whitespace{$1}/g);
$netid =~ (s/(AD|MAIN)//);
####
"AD\thomas" -> "thomas"
"MAIN\floyd" -> "floyd"
"AD\manny" -> "manny" # perl escapes normal char, no harm