Fix bug where empty strings could break tries
Clean up and refactor
v0.1.1