added SplitText function