1. Mealy and Moore doubt

How can I make a converting in Mealy or Moore ?
With the following input: AB 32,2,123
output is: C 32.2.123

Converting AB to C
And converting , to .

Is it possible?
How do I check what the entry to change it?