I have a dataframe where the team names are given as a string. The rules to split string to get individual team names are