For the sample XML (without namespaces):
This XPath,
/r/f/text()
will select the text node with this string value:
"Text 1"
And this XPath,
string(/r/f)
will return the string value of f, which is also:
f