title: String formatting, trim from right instead of left
body: <p>I have a set of strings that I want to format to keep the string at 5 characters. I'm using a line like this (the original strings are sometimes 5 characters, sometimes 6):</p>
  
  <pre><code>ram1 = ram1.astype('|S5')
  </code></pre>
  
  <p>However, this turns</p>
  
  <pre><code>039410
  </code></pre>
  
  <p>Into</p>
  
  <pre><code>39410
  </code></pre>
  
  <p>When I want it to be</p>
  
  <pre><code>03941
  </code></pre>
  
  <p>Is there a simple way to fix my line of code to do this? </p>
  
  <p>Cheers!</p>