It would make more sense to me if this were a public function in the Tag module since it is dealing exclusively with tags.

Also, I think this function deserves a unit test.  Then, the functional test doesn't have to be as creative either since the actual stripping and splitting and such is covered in the unit test for this function.