Fix strange crash when passing a string with leading space and ended with a special character like '_' or a number to the speech engine.