Converted splitString to use options object.