updated category tag details box so text is properly replaced if there is no other hashtag afterward