I am getting new_tag from a form text field with self.response.get(\"new_tag\") and selected_tags from checkbox fields with
Eek, don't do anything that complicated : )
Just filter() your tags. bool() returns False for empty strings, so instead of
new_tag_list = f1.striplist(tag_string.split(",") + selected_tags)
you should write
new_tag_list = filter(bool, f1.striplist(tag_string.split(",") + selected_tags))
or better yet, put this logic inside striplist() so that it doesn't return empty strings in the first place.