I don’t have the commenting privilege yet, but this is a duplicate. This question could be found from a quick Google: Splitting a string into two halfs
int mid = length / 2; //get the middle of the String
String[] parts = {text.substring(0, mid),text.substring(mid)};
solved How to split a string into two equally based on the its length