// If it's non-blank, there is no maximum length
// and it can't contain any illegal characters
String illegalChars = "()<>@,;:\\\"/[]?={} \t";
StringCharacterIterator iter = new StringCharacterIterator(theName);
for (char c = iter.first(); c != CharacterIterator.DONE;
c = iter.next()) {
if ((illegalChars.indexOf(c) != -1)
|| ((c >= 0) && (c <= 31))
|| (c == 127)) {