using split_contents(), removing import re(regular expressions), and adding docstring of template tag usage