Ouch!
No,no: You want this code to be branchless!
If you know that the inputs are 7-bit ascii you can do it like this:
mov ebx,eax
xor eax,2C2C2C2Ch ; Turns comma into zero byte
sub eax,01010101h ; 80h or higher for zero input
and eax,080808080h ; 80h mask for each byte to be converted
shr eax,5 ; 04h --------- " ------------------
lea eax,[eax+eax*2] ; 0Ch mask, difference between ',' and ' '
sub ebx,eax ; Output in EBX