Assign a string a unique tag