I'm happy with most of my Pattern Matching solution for capturing data from a scanned form. I have a couple of records that the OCR is recognizing with an extra space after the surname. I believe because the student's name ends in the letter "I", so it looks like there is more space between the characters.
ie) SURNAME , FIRSTNAME
where the correct version is:
SURNAME, FIRSTNAME
This throws pattern matching off, and gives me an incorrect result because it finds a correct result in the address.
Is there a way I can account for these rare occasions in the coding?