Fixes #3136 The deleteString function was unconditionally resetting child pointers, corrupting words that share prefixes. Fixed by only pruning nodes when they have no children and are not the end of another word. Added a hasChildren() helper method and regression tests. #3142
+44
−31