model/src/main/java/eu/internetofus/common/model/ValidateContext.java
/**
   * Normalize a string value.
   *
   * @param value to normalize.
   *
   * @return the normalized string value, thus trim it and if it is an empty
   *         string return {@code null}.
   */
Normalize a string value.
@param value to normalize.

@return the normalized string value, thus trim it and if it is an empty
string return  null.
Normalize a string value . @param value to normalize . @return the normalized string value thus trim it and if it is an empty string return null .
default String normalizeString(final String value) {
    if (value != null) {
      final var trimmedValue = value.trim();
      if (trimmedValue.length() > 0) {
        return trimmedValue;
      }
    }
    return null;
  }
default String normalizeString ( final String value ) { if ( value != null ) { final var trimmedValue = value . trim ( ) ; if ( trimmedValue . length ( ) > 0 ) { return trimmedValue ; } } return null ; }
Normalize a string value.
Normalize a string value .