strtrie: slight refactor of Node.contains