Using two split filters and customizing data.

Hello, My theme uses " | " for line breaks in headings, currently we have 3 lines set up for headings and it works like a charm. however I would like to add another split filter using “-” and I would like that data to be outputted as an inline table. I have implemented the second split condition with a div class in hopes to create an inline table but the data still does not output the way I’d like. If I cant use the split filter which filters should I be using if any?A couple other things I should mention I would like this table to appear on my collection headers

{{ product.variants[0].sku }}

     
      
	{% if settings.plus_enable_collection_headings and product.title contains "|" %}
  	{% assign product_title = product.title | split: "|"  %}
	  
          
      
 {{ product_title[0] }}

       
      {% if product_title[1] contains "-" %} 
      {% assign custom_boxes = product_title[1]  | split: "-"  %}
       
      	
 {{ custom_boxes[0] }}

         {{ custom_boxes[1] }}

         {{ custom_boxes[2] }}

        
      {% else %} 
       {{ product_title[1] }}

      
      
      {% if product_title[2] contains "-"  %}
      
        
 {{ product_title[2]}}

      {% else %} 
         {{ product_title[2] }}

   
       
	   {% else %}
  		{{ product.title  | remove: "|" }} 
    {% endif %}
      {% endif %}
      {% endif %}
{% if settings.plus_enable_collection_headings and product.title contains "|" or "-" %}
  
{% endif %}

Hi @AlexanderSierra ,

Please send your site and if your site is password protected, please send me the password. I will check it.