Refactor string -> Tag conversion into Tag.prepare_tags() method