title: Restricting space at the beginning
body: <p>This is function which is I'm using at <code>liveChange</code> event:</p>
  
  <pre class="lang-js prettyprint-override"><code>if (oEvent.mParameters.value.indexOf(" ") === 0) {
    sap.m.MessageToast.show("Space character is not allowed");
    oEvent.preventDefault();   
    return false;
  }
  </code></pre>
  
  <p>By using this code I have to restrict the whitespaces at the beginning in the input field. I tried a lot, I'm getting the message but it is taking the whitespace. How can I make an input field display only  message and it should not take whitespaces.</p>