I’m unsure why converting from binary to char_list then back again for each character, but why not just regex?
iex> Regex.replace(~r/[A-Z]/, "HelloWorld", " \\0")
" Hello World"
Or are you trying to reduce it for some other reason?
For note, this happens because you are converting it to a charlist, meaning a character is an integer, which you convert an integer back to a binary with your to_string call, which gives you the number, not the character.


















