def iterate_one(text, match):
    """
    Correct one amendment using first replacement suggestion.
    """
    rep = str(match.replacements)
    rep_len = len(rep)
    # print(text)
    # print(f'{"^".rjust(match.fromx + 1, " ")}')
    # print(f'{rep.rjust(match.fromx + rep_len, " ")}')
    try:
        if len(match.replacements) > 0:
            if match.replacements[0] != ".":
                return text[:match.fromx] + match.replacements[0] + text[match.tox:]
            else:
                return text
        else:
            return text
    except Exception as e:
        print(f"\n\n{text}\n{match.replacements}\n{match.fromx}\n{match.tox}\n{e}")