title: Check blank space when clicking in a EditText
body: <p>I have a customized <code>EditText</code> class, whats is happening is that there is a validation already for the field, checking it's length and doing trim.</p>
  
  <p>But, the app is crashing because it is possible to click in the field and insert data after 1 space. </p>
  
  <p>How can I validate when clicking, that user can not write his data? If he/she writes data with one space, the app crashes and I receive the following exception.</p>
  
  <pre><code>java.lang.IllegalArgumentException: Start position must be less than the actual text length
  </code></pre>
  
  <p>Thanks in advance.</p>