Loosely matching rhymes for magnetic character recognition