inval="123,446,0500.99"

lstr=[]
for i in range(len(inval)):
    if inval[i] ==',':
        lstr.append(' ')
    elif inval[i] =='.':
        lstr.append(',')
    else:
        lstr.append(inval[i])
        
print(''.join(lstr))

af9a8dc6f688d2148b10b8e3232d1acbc3ad836c
<mask token>

<mask token>
for i in range(len(inval)):
    if inval[i] == ',':
        lstr.append(' ')
    elif inval[i] == '.':
        lstr.append(',')
    else:
        lstr.append(inval[i])
print(''.join(lstr))

inval = '123,446,0500.99'
lstr = []
for i in range(len(inval)):
    if inval[i] == ',':
        lstr.append(' ')
    elif inval[i] == '.':
        lstr.append(',')
    else:
        lstr.append(inval[i])
print(''.join(lstr))

inval="123,446,0500.99"

lstr=[]
for i in range(len(inval)):
    if inval[i] ==',':
        lstr.append(' ')
    elif inval[i] =='.':
        lstr.append(',')
    else:
        lstr.append(inval[i])
        
print(''.join(lstr))
