Gets id of location from larger string