private String parseQuoted ( String tx ) { StringBuilder buf = new StringBuilder ( ) ; int size = tx . length ( ) ; int i = 0 ; while ( i < size ) { char ch = tx . charAt ( i ) ; if ( ch == ' ' ) { if ( i + 5 < size && tx . charAt ( i + 1 ) == ' ' && tx . charAt ( i + 2 ) == ' ' && tx . charAt ( i + 3 ) == ' ' && tx . charAt ( i + 4 ) == ' ' && tx . charAt ( i + 5 ) == ' ' ) { buf . append ( ' ' ) ; i += 6 ; } else if ( i + 5 < size && tx . charAt ( i + 1 ) == ' ' && tx . charAt ( i + 2 ) == ' ' && tx . charAt ( i + 3 ) == ' ' && tx . charAt ( i + 4 ) == ' ' && tx . charAt ( i + 5 ) == ' ' ) { buf . append ( ' ' ) ; i += 6 ; } else { buf . append ( ch ) ; ++ i ; } } else if ( ch == ' ' && i + 1 < size ) { ch = tx . charAt ( i + 1 ) ; if ( ch == ' ' || ch == ' ' || ch == ' ' || ch == ' ' ) { buf . append ( ch ) ; i += 2 ; } else { buf . append ( ' ' ) ; ++ i ; } } else { buf . append ( ch ) ; ++ i ; } } return buf . toString ( ) ; }
may be send to EL processor .