code: private boolean hasDelimiter(String s1, String s2, String delimiter) {
      return s1.contains(delimiter) && s2.contains(delimiter) && s1.split(delimiter).length == s2.split(delimiter).length;
    }
docs: /*
  Returns true if both strings include the delimiter and have the same number of occurrences of it