Cleans up formatting in deleteTag.