question: public static String escapeString ( final String string ) { if ( string . indexOf ( DELIMITER_COMPONENT ) < 0 ) { final int length = string . length ( ) ; final StringBuffer buffer = new StringBuffer ( length + 16 ) ; for ( int index = 0 ; index < length ; index ++ ) { final char character = string . charAt ( index ) ; if ( DELIMITER_COMPONENT == character ) buffer . append ( DELIMITER_COMPONENT ) ; buffer . append ( character ) ; } return buffer . toString ( ) ; } return string ; }
target:  Escapes the specified string for the history index.