Update SplitTextToSentences to return an array of nonempty sentences