Updated splitsentence example with new API