takeFirst

open fun takeFirst(str: String, count: Int): String

Returns the first count characters of the given string.