title: Unit test javascript, same typeof, same string, but test fail
body: <p>I try to do unit test on my truffle react-auth project, on my Authentification.sol contract, but when i register a new user, and log him, i have the same typeof var (string), the same strings, but test does not match.
  Btw i try to discover test &amp; truffle </p>
  
  <p>Actual string has 32 length and expected has only 8, i dont really know why.
  Method's Contract return me a bytes32.</p>
  
  <p>Thank's as well for help</p>
  
  <p>Link of the test img : 
  <a href="https://i.stack.imgur.com/0P9cx.jpg" rel="nofollow noreferrer">https://i.stack.imgur.com/0P9cx.jpg</a> || <a href="https://prnt.sc/mia1yu" rel="nofollow noreferrer">https://prnt.sc/mia1yu</a></p>
  
  <pre><code>var Authentication = artifacts.require("./Authentication.sol");
  
  contract('Authentication', function(accounts) {
  
    let authenticationInstance;
  
    it("Should sign up and log in", function() {
      return Authentication.deployed().then((instance) =&gt; {
        authenticationInstance = instance;
  
        return authenticationInstance.signup(web3.utils.fromAscii('testuser'));
      }).then( (result) =&gt; {
          assert.equal(result.receipt.status, true, "Transaction is done &amp; success")
          return authenticationInstance.login()
      }).then( (name) =&gt; {
        let nameConverted = web3.utils.toAscii(name).toString().trim()
          assert.equal(nameConverted, 'testuser', "User has the good name")
      })
    });
  });
  </code></pre>