Just a simple substring node that takes text and length as input, and outputs the first length characters.
https://github.com/godspede/ComfyUI_Substring
git clone https://github.com/godspede/ComfyUI_Substring
comfy node install comfyui_substring