Modified SentenceDetector.java bug