title: Solidity: Use String as Hex
body: <p>I am new to Solidity and trying some stuff.</p>
  <p>I would like to store the defined hex value &quot;ac43fe&quot; in a bytes-variable. Like this it is working fine:</p>
  <pre><code>bytes memory foo = hex&quot;ac43fe&quot;;
  </code></pre>
  <p>But instead of doing it directly, I will have the hex-value inside a string. Like:</p>
  <pre><code>string hex = &quot;ac43fe&quot;
  </code></pre>
  <p>Now I am searching for a way, so that I can convert this Hex-value (stored in the string) into a bytes variable.</p>
  <p>Thanks a lot for your help.</p>
  <p>Best regards,
  Pascal</p>