extension of String treewalker methods, and some test cases for them