How to split string into multiple chunks by size

Be sure to use String.graphemes/1 if there is any possibility of Unicode data in your strings, codepoints can do potentially not what you want. See here for more: String — Elixir v1.20.2