Well, there is really nothing to explain, use the GetRect method to retrieve the bounding rectangle of the text.
SFML 1.6:
sf::String string("hello");
float width = string.GetRect().GetWidth();
SFML 2.0:
sf::Text text("hello");
float width = text.GetRect().Width;