Get text character between the strings for custom markup?

basically i made a script that instance new text label for each character so i can make them shake or change color like this

For example i have this: “hello <style=shake> world <\style>”
now i want to get the word “world” since they’re between the strings so i can animate them