Get state names from data.