getTypoCorrection function

Check record validity and suggest typo corrections