fix to eliminate single digit numbers (plus potemtial leading zeros)
added exception handler in rank_matches