title: Substring is not working as expected if length is greater than length of String
body: <p>I know <em>if/else</em> works, but I needed an alternative.</p>
  <p>I am using</p>
  <pre><code>B = String.Concat(A.Substring(0, 40));
  </code></pre>
  <p>to capture the first 40 characters of a value.</p>
  <p>If the value at <code>A</code> is more than <code>40</code>, <code>B</code> is able to capture, but if the value of <code>A</code> is less than <code>40</code>, there is no value being captured at <code>B</code>.</p>