Set<String> (String str) { final Set<String> result = new SmartHashSet<>(); StringTokenizer t = new StringTokenizer(str, " \n\t", false); while (t.hasMoreTokens()) { result.add(t.nextToken()); } return result; }