Add pauses to text box typewriter effect?

Ok, so I went with this idea:



So it just goes character by character, and if the next character is a “#”, it runs the following command. The “Do command” section is a little messy, but it just gets the command (by getting the string between the “#” and the next space), removes it from the original text (without removing all other commands), searches it in a map, and if it finds it, runs its delay.

Example