def METHOD_NAME(atomidtext):
    re_s = re.compile(r'(\S+)')
    atoms_and_whitespaces = re_s.split(atomidtext)
    newstring = []
    for atom in atoms_and_whitespaces:
        if not atom or atom.isspace():
            newstring.append(atom)
        else:
            array = atom.split(":")
            atomtype = array[1]
            if RepresentsInt(array[0]):
                integer = int(array[0])
            else:
                print("Cannot convert {} to integer".format(array[0]))
            newinteger = integer - 1
            newstring.append(f"{newinteger}:{atomtype}")
    return ''.join(newstring)