fix for new 0.6 change
add a basic string trie implementation
this should be a strict prefix
use the trie to implement reading with escape codes