We must not split a text node that are made of whitespace entirely. We should be able to test a node. In this page, we use a Regular Expression pattern to detect all chars are whitespaces.