Lear_doctor,
if the batch number is missing/not in the right place
Which is it ?
Because if you're talking about the latter, sooner or later its going to bite you in backside in a major way if you're trying to correctly guess / make assumptions as to where the correct data may be.
It sounds to me as you really need to fix whatever's feeding you the data or parse it better ?