implemented Text.splitText method