PREP_PROCESS_REPORT fails if search string ends in trailing blank