@register.filter()<EOL>def string2var(string):
return string<EOL>
{% with user.full_name|truncatechars:16|string2var as truncated_name %}
    {{ truncated_name|highlight:search_kw }} # need to truncated and then highlight
{% endwith %}