public static final String stripAllSpaces(final String data){
  final StringBuilder text=new StringBuilder((data));
  int pointer2=text.length() - 1;
  while (pointer2 > 0) {
    if (text.charAt(pointer2) == ' ') {
      text.deleteCharAt(pointer2);
    }
    pointer2--;
    if (pointer2 < 0) {
      break;
    }
  }
  return text.toString();
}

public static final String stripAllSpaces ( final String data ) { final StringBuilder text = new StringBuilder ( ( data ) ) ; int pointer2 = text . length ( ) - 1 ; while ( pointer2 > 0 ) { if ( text . charAt ( pointer2 ) == ' ' ) { text . deleteCharAt ( pointer2 ) ; } pointer2 -- ; if ( pointer2 < 0 ) { break ; } } return text . toString ( ) ; }
removes all the spaces
