parse coordinates from a string