void fixWhiteSpace(){
  final int index=mOutputBuilder.length() - 1;
  if (index >= 0) {
    final char lastCharacter=mOutputBuilder.charAt(index);
    if (!Character.isWhitespace(lastCharacter)) {
      mOutputBuilder.append(" ");
    }
  }
}

void fixWhiteSpace ( ) { final int index = mOutputBuilder . length ( ) - 1 ; if ( index >= 0 ) { final char lastCharacter = mOutputBuilder . charAt ( index ) ; if ( ! Character . isWhitespace ( lastCharacter ) ) { mOutputBuilder . append ( " " ) ; } } }
ensure the output string has a character of whitespace before adding another word .
