* @param y
   * @param caseSensitiveP
   * @return int
   */
  public static int stringCompare(String x, String y, boolean caseSensitiveP) {
    if (caseSensitiveP) {
      return (x.compareTo(y));
    }
    else {
      return (x.compareToIgnoreCase(y));
    }
  }