question: String [ ] split ( final String stringToSplit ) { if ( StringUtils . isNotBlank ( stringToSplit ) ) { int strLenght = stringToSplit . length ( ) ; int splitNum = strLenght / chunkSize ; if ( strLenght % chunkSize > 0 ) { splitNum += 1 ; } String [ ] result = new String [ splitNum ] ; for ( int i = 0 ; i < splitNum ; i ++ ) { int startPos = i * chunkSize ; int endPos = startPos + chunkSize ; if ( endPos > strLenght ) { endPos = strLenght ; } result [ i ] = stringToSplit . substring ( startPos , endPos ) ; } return result ; } return null ; }
target:  Split string to chunks by size.