Refactor string hash table