much better way to detect the text (and convert to a tag)