public static String[] tokenizeOnSpace(String s)
    {
        return Arrays.stream(s.split("(?<=" + StringUtil.PATTERN_SPACE + ")|(?=" + StringUtil.PATTERN_SPACE + ")"))
                .toArray(String[]::new);
    }
@Test
    void testTokenizeOnSpace_onlySpacesWithText()
    {
        String[] result = StringUtil.tokenizeOnSpace("  a  ");
        assertArrayEquals(new String[] {" ", " ", "a", " ", " "}, result);
    }