improved sentence tokenization