You could test if the string in OBX.5.1 contains a back tick using the indexOf() string method. If so, split the string into an array using the split() array methed, and then iterate over the array using a for...of statement to set the properties you want.