Passport MRZ field (ICAO 9303 TD3) that validates each check digit and the composite, catches OCR slips like O for 0 and K for <, swapped lines, CRLF and stray spaces, proposes the likeliest fix for a bad digit, flags expired or soon-expiring passports, then fills the fields.