It will be difficult to strip out bbcode tags from the text and still keep the formatting. I suggest you use the official typewriter, it can do this automatically.
Then is there any way for the typewriter to type at a constant speed? And would it be possible to have different characters such as a period take longer to type(have more pause)