question: public static String replicaSetUsedIn ( String addresses ) { if ( addresses . startsWith ( "[" ) ) { return null ; } int index = addresses . indexOf ( '/' ) ; if ( index < 0 ) return null ; return addresses . substring ( 0 , index ) ; }
target:  Find the name of the replica set precedes the host addresses.