code: private static String[] parsePair (String pair) {
          String[] tmp = new String[2];
          int indexOfA = pair.indexOf('{')+1;
          int indexOfB = pair.indexOf(',');
          tmp[0] = pair.substring(indexOfA,indexOfB);
          tmp[1] = pair.substring(indexOfB+2,pair.length()-1);
  
          return tmp;
      }
docs: parses a pair in the form {A, B}