Connect hashes in text file with stars