processToken

fun processToken(buffer: CharArray, length: Int): Int

Takes the original buffer and length as input. Modifies the buffer in-place and returns new length

Return

new length