code: static String normalize(@NonNull String name) {
        StringBuilder toReturn = new StringBuilder();
        boolean previousSpace = false;
        for( char c : name.toCharArray()){
           if( Character.isWhitespace(c) ){
              if( !previousSpace ){
                 toReturn.append('_');
              }
              previousSpace = true;
           } else {
              previousSpace = false;
              toReturn.append(Character.toUpperCase(c));
           }
        }
        return toReturn.toString();//name.toUpperCase().replaceAll("\\s+", "_");
     }
docs: <p>Normalizes a string to be uppercase and use and underscore in place of whitespace.</p>
  
  @param name the name to be normalized
  @return the normalized version of the name
  @throws NullPointerException if the name is null