title: StringTokenizer is not getting right value after delimiter
body: <p>I'm trying to get the string from ARCHIVE_FILE_EXTENSION_FILTER but somehow it is not taking the first value and returning NULL</p>
  <p>Below is the properties info</p>
  <pre><code>#indicate any file extensions to filter by - must be comma-delimited. Enter 'none' to get all files
  Text.FileArchiver.INV_ARCHIVE_FILE_EXTENSION_FILTER=done , proc
  </code></pre>
  <p>May I know why it's not working the value and any issue with my code</p>
  <p><a href="https://i.stack.imgur.com/UwbaI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UwbaI.png" alt="enter image description here" /></a></p>
  <pre><code>String extension = env.getProperty(trimIni(ARCHIVE_FILE_EXTENSION_FILTER));
  
          if (Objects.nonNull(extension) &amp;&amp; !NONE.equalsIgnoreCase(extension)) {
              StringTokenizer token = new StringTokenizer(extension, &quot;,&quot;);
              int i = 0;
              String[] tmpExtensions = {};
  
              if (token.countTokens() &gt; 0) {
                  tmpExtensions = new String[token.countTokens()];
              }
  
              while (token.hasMoreTokens()) {
                  tmpExtensions[i] = token.nextToken();
              }
  
              extensions = tmpExtensions;
          }
  </code></pre>