Yarn commands generates extra spaces

I tried adding a bunch of commands in my dialogue to make it more animated, such as pauses or flashes, but every time the commands are used, an extra space is generated in the text. This may not be noticeable in English, but when it comes to localizing the game into other languages, it is really annoying. Also, there seems to be some problem in wrapping the text when commands are used. For example, if I’m using Chinese, the characters and punctuations should be printed continuously when scrolling the text, but when a space (usually generated by a command) is present, the text is wrapped just as if it is in English, by which I mean the text is identified as separate words instead of a continuous sentence and wrapped in a weird way. It won’t change even if I switch the language of dialogue into Chinese in the settings. Is there a solution to these problems? What could be causing all these troubles?