Eliminating additional spaces

Hi,

Is there a way to eliminate additional spaces in text variables?

example:

EDIT: The forum already eliminate the spaces. Imagine that “_” is space on the following sentences:

text = “___KirupaForum______is_the__best____Flash_tutorial____site_of_the___World

Eliminating spaces…

text = “KirupaForum_is_the_best_Flash_tutorial_site_of_the_World”

thanks