Remove commas from indexed values

<?php

add_filter( 'facetwp_index_row', function( $params, $class ) {
    if ( is_string( $params['facet_value'] ) ) {
        $params['facet_value'] = str_replace( ',', '-', $params['facet_value'] );
    }
    return $params;
}, 10, 2 );