title: Split space from string not working in Kotlin
body: <p>Anyone wonder this ? Splitting <strong>SPACE (" ")</strong> in kotlin is not working, i tried with different regex codes but is not working at all.</p>
  
  <p>Tried with this : </p>
  
  <pre><code>value.split("\\s")[0];
  value.split("\\s+")[0];
  value.split("\\s++")[0];
  </code></pre>
  
  <p>Then i came up with solution -> Create java constant class which contains this function and returns string array to your kotlin class.</p>
  
  <p>Is there any other solution for this problem where we can directly achieve this thing?</p>
  
  <p><strong>Solution :</strong> As @Edson Menegatti said : </p>
  
  <p><strong>KOTLIN Specific : WORKING</strong></p>
  
  <pre><code>values.split("\\s".toRegex())[0]
  </code></pre>
  
  <p>Many people suggested this solution :  <strong>NOT WORKING</strong></p>
  
  <pre><code>values.split(" ")[0] 
  </code></pre>
  
  <p>But in my case it's <strong>not working</strong>.</p>