Barcode Print Format

Hi all,
In Stock Entry Print format i am generating the Barcode. in that i need to split the serial no. I need to split the serial no using jinja template.

I have used following methods:
{% set serial = row.serial_no|string() %}
{% set list1 = serial.split(’ ') %}
{% for item in list1 %}

{{ item }}


{% endfor %}

I cant able to split it.

Try
{% set serial_no_list = row.serial_no.split(’ ') %}
{{ set serial_no_list[0] }}
or
{{ set serial_no_list[1] }}