split string at a spce and choose the 0th index java split string into array when a full stop is encountered java code example
Example: split string by index java
String s ="123456789abcdefgh";
String sub = s.substring(0, 10);
String remainder = s.substring(10);