New logic for highlighting basenames with spaces