My problem is I am storing users live location in database but it is getting stored in
“lat/lng: (37.4219983,-122.084)” this format and I want to store co-ordinates only like (37.4219983,-122.084). How can I do that I am using Android with java.

This is my code snippet for taking location

locationCallback = new LocationCallback() {
        @Override
        public void onLocationResult(@NonNull LocationResult locationResult) {
            for (Location location : locationResult.getLocations()) {
                LatLng userLocation = new LatLng(location.getLatitude(), location.getLongitude());
                mMap.addMarker(new MarkerOptions().position(userLocation).title("Current Location"));
                mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(userLocation, 15));
                latlang = userLocation.toString();
            }
        }
    };
    fetchUserLocation();

I don’t know how to remove the prefix “lat/lng:”.