fix detection of unused slots (N.A.) because of trailing spaces