text hash map to HashMap