@ Trivial public static String lowerFeature ( String inFeature ) { if ( inFeature == null || inFeature . isEmpty ( ) ) return inFeature ; // Preserve the prefix (no case shift) int colonIndex = inFeature . indexOf ( ":" ) ; if ( colonIndex > - 1 && inFeature . length ( ) > colonIndex ) { // Put together preserved extension name with the downcased feature name return inFeature . substring ( 0 , colonIndex ) . trim ( ) + ' ' + inFeature . substring ( colonIndex + 1 ) . trim ( ) . toLowerCase ( Locale . ENGLISH ) ; } else { return inFeature . toLowerCase ( Locale . ENGLISH ) . trim ( ) ; } }
Get feature name with product extension unchanged and the feature name converted to lower case .