Quick-and-dirty function for extracting a string from a Node text stream