I've got an application in which some text expands from the center of a TextField one letter at a time. It works just fine as long as there are no spaces, but as soon as a space is reached in the string, it is ignored until a non-space is reached, at which point the text centers itself in the TextField.

`myText` is a TextField on the stage with centered text as its default alignment.

```
// Write the words
var charBetweenWords:String = " ";
var whatToWrite:String = "THERE ARE 200 BARRELS OF OIL IN ONE TANKER TRUCK";
whatToWrite = whatToWrite.split(" ").join(charBetweenWords);
var wordTimer:Timer = new Timer(100, 1);
wordTimer.addEventListener(TimerEvent.TIMER_COMPLETE, wordHandler);
function wordHandler(e:TimerEvent)
{
    if (whatToWrite.length > 0)
    {
        myText.appendText(whatToWrite.substr(0, 1));
        whatToWrite = whatToWrite.substr(1);
        wordTimer = new Timer(5, 1);
        wordTimer.addEventListener(TimerEvent.TIMER_COMPLETE, wordHandler);
        wordTimer.start();
    }
    else
    {
        // Done
    }
}
wordTimer.start();

```

I've considered replacing the spaces with a non-space (but still whitespace) character like /u0020, but the font I'm using doesn't appear to support that. No spaces appear at all when I do that (but a trace of `whatToWrite` returns boxes between the words).

The Flash IDE doesn't center text considering spaces at the end. `myText` is placed in the Flash IDE and not initialized in code.

What can I do to make this work?