private static String[] splitConsolidated(String s){
  if ((s.length() % 2) != 0) {
    throw new IllegalArgumentException("Differing size of northing and easting, unable to determine valid ref " + s);
  }
  int index=s.length() / 2;
  return new String[]{s.substring(0,index),s.substring(index)};
}

private static String [ ] splitConsolidated ( String s ) { if ( ( s . length ( ) % 2 ) != 0 ) { throw new IllegalArgumentException ( "Differing size of northing and easting, unable to determine valid ref " + s ) ; } int index = s . length ( ) / 2 ; return new String [ ] { s . substring ( 0 , index ) , s . substring ( index ) } ; }
split a string into two strings
