private String[] splitSpaceDelemitNameValuePair(String str){
  if (str == null || str.isEmpty())   return null;
  String str2=str.trim();
  int idx=str2.lastIndexOf(' ');
  if (idx <= 0)   return null;
  String name=str2.substring(0,idx);
  String val=str2.substring(idx + 1);
  if (name.isEmpty() || val.isEmpty())   return null;
  name=name.trim();
  try {
    BigDecimal bdecimal=new BigDecimal(val);
    if (bdecimal != null) {
      String[] res=new String[2];
      res[0]=name;
      res[1]=val;
      return res;
    }
  }
 catch (  Exception ex) {
  }
  return null;
}

private String [ ] splitSpaceDelemitNameValuePair ( String str ) { if ( str == null || str . isEmpty ( ) ) return null ; String str2 = str . trim ( ) ; int idx = str2 . lastIndexOf ( ' ' ) ; if ( idx <= 0 ) return null ; String name = str2 . substring ( 0 , idx ) ; String val = str2 . substring ( idx + 1 ) ; if ( name . isEmpty ( ) || val . isEmpty ( ) ) return null ; name = name . trim ( ) ; try { BigDecimal bdecimal = new BigDecimal ( val ) ; if ( bdecimal != null ) { String [ ] res = new String [ 2 ] ; res [ 0 ] = name ; res [ 1 ] = val ; return res ; } } catch ( Exception ex ) { } return null ; }
split a space delimit name value pair , with name followed by value . the name could have space too .
