title: custom encode a string
body: <p>How do I convert every character in a string to a number for encoding.</p>
  
  <p>My encoding key will be.</p>
  
  <pre><code>a = 01
  b = 02
  c = 03
  d = 04
  .
  .
  z = 26
  </code></pre>
  
  <p>So suppose I enter "dog" in my cell, it should be converted to "04 15 07".</p>
  
  <p>Will be working in Google Spreadsheet, so a JavaScript function would be helpful.</p>