If you see the namekey of the state instead of the state name in an address, it's because you deleted/unpublished the state in the System->Zones menu.
If you want to change the address display, you need to edit the two files address_template via the menu Display->Views.