Example 3: Replacing B with GFHI

String is ABC.

Result is AFG.

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