public static List<String> normalizeTagsForUpload(List<String> list) {
        if (isNullOrEmpty(list)) {
            return null;
        }
        List<String> tmp = new ArrayList<String>();
        for (String s : list) {
            if (s.contains(" ")) {
                tmp.add("\"" + s + "\"");
            } else {
                tmp.add(s);
            }
        }
        return tmp;
    }
public static List < String > normalizeTagsForUpload ( List < String > list ) { if ( isNullOrEmpty ( list ) ) { return null ; } List < String > tmp = new ArrayList < String > ( ) ; for ( String s : list ) { if ( s . contains ( " " ) ) { tmp . add ( "\"" + s + "\"" ) ; } else { tmp . add ( s ) ; } } return tmp ; }
Normalize tags for uploads.

This will put quotation marks around tags that contain spaces.

@param list list of tags.
@return new list containing normalized tags.