class TStringUtil extends StringUtils {

    public static String[] twoPartSplit(String str, String splitor) {
        if (str != null && splitor != null) {
            int index = str.indexOf(splitor);
            if (index != -1) {
                String first = str.substring(0, index);
                String sec = str.substring(index + splitor.length());
                return new String[] { first, sec };
            } else {
                return new String[] { str };
            }
        } else {
            return new String[] { str };
        }
    }

}