reworked the logic for custodial events to eliminate parallel instances of code; regularized handling of spaces and punctuation and added trapping for sparse data