title: How to set a string variable with zero from a text file in BeanIO?
body: <p>My text file has 00 as state. I want to pass 00 to setState metod of Person object using BeanIO. But getting exception like Invalid state:Required field not set. It is accepting spaces but not zeros.</p>
  
  <p>My mapping file is:</p>
  
  <pre><code>&lt;beanio&gt;
      &lt;stream name="acesFile" format="fixedlength" strict="true"&gt;
          &lt;record name="personObj" class="com.hbe.conversion.businessObjects.Person"  occurs="0+"&gt;
              &lt;field name="state" position="0" length="2" required="true" padding="0"      /&gt;
          &lt;/record&gt;
      &lt;/stream&gt;
  &lt;/beanio&gt;
  </code></pre>
  
  <p>Method in Person class :</p>
  
  <pre><code>public void setState(String state) {
      this.state = state;
  }
  </code></pre>