Check out the Javadoc about the Text class. It has two methods: toString() and getValue() . But toString() only returns the first 70 characters.
So use getValue() instead:
String value = someText.getValue();
The Text class contractor supports initialization with a string value. And (as Javadok says), this object cannot be modified after construction.
source share