question: public static String stripOfFinalUnderScore ( final String identifier ) { final int finalUndescorePos = identifier . lastIndexOf ( '_' ) ; if ( finalUndescorePos < 1 ) { throw new IllegalStateException ( "Appear to have a protein accession without _N appended to it!: " + identifier ) ; } return identifier . substring ( 0 , finalUndescorePos ) ; }
target:  Strips identifiers from ABC.1_1 to ABC.1 OR Blob_1 to Blob.