Data cleaning to extract coordinates