Add getAsString method that converts value nodes to Strings