fixing the teiDocument for city, state, country and the header for material type