Replace state name for state code. Replace the state name for state code by using a user event script.