use String#apply(i: Int) in place of String#toList.