Unrolling the string will be slightly faster (as long as the string is short), since we can omit the range check, the `charAt` call and the index counter.