public static String normalizeIdentifier(String identifier) {
    return identifier.trim().toLowerCase();
  }
Normalize all identifiers to make equality comparisons easier.
@param identifier identifier
@return normalized version, with white space removed and all lower case.
standalone-metastore/metastore-common/src/main/java/org/apache/hadoop/hive/metastore/utils/StringUtils.java