def fixup(ocr_text, pattern):
    """Fix spacing and numerics in ocr text"""
    cleaned_pattern = pattern.replace("4", "A").replace("1","l").replace(" ","")

    #print(f"{pattern}\t\t{cleaned_pattern}")
    #print("{0:<30} {1:<10}".format(pattern, cleaned_pattern))

    return ocr_text.replace(pattern, cleaned_pattern)