(String leftText, String rightText) splitStringAt(String str, int index) { return (str.substring(0, index), str.substring(index)); }