move string to hash