title: How to copy one string's n number of characters to another string in Kotlin?
body: <p>Let's take a string <code>var str = "Hello Kotlin"</code>. I want to copy first 5 character of <code>str</code> to another variable <code>strHello</code>. I was wondering is there any function of doing this or I have to apply a loop and copy characters one by one.</p>