tagger function

Surrounds text with tags unless empty