The before() method of the CharacterData interface inserts a set of Node objects and strings in the children list of the CharacterData's parent, just before the CharacterData node.
Strings are inserted as Text nodes; the string is being passed as argument to the Text() constructor.