add sumBetweenStrings implementation that doesn't use parent links in nodes