Set state name in direct edition