String[] values;
if (separator == null) {
values = new String[]{valueString};
} else {
StrTokenizer tokenizer = new StrTokenizer(valueString, separator);
values = tokenizer.getTokenArray();
}
String[] result = new String[values.length + 1];
result[0] = key;
System.arraycopy(values, 0, result, 1, values.length);