Example 3: Replacing B with FGHI

String is ABC.

Result is AFG.

To retain the field length of three, the system replaces only the first two letters.