lib: Update text_stat and tests for new String types