public static String[] getStringArrayBySeparator(String value, String separator) {
    String[] strings = StringUtils.splitByWholeSeparator(value, separator);
    String[] result = new String[strings.length];
    for (int index = 0; index < strings.length; index++) {
      result[index] = trim(strings[index]);
    }
    return result;
  }
@Test
  public void test_getStringArrayBySeparator_on_input_with_separator() {
    String[] result = SettingFormatter.getStringArrayBySeparator(" abc, DeF  , ghi", ",");
    assertThat(result).containsExactly("abc", "DeF", "ghi");
  }