Simplify datrie and text dictionary