change split in randVarListItem to regex for optional spacing between |