switched string splitter to use regex rather than string split.