Fixed a bug where newline characters were not being recognized as
whitespace, which messed up sentence segmentation. Even though I'm on
Windows, the newlines I typed or pasted in were all '\n' instead of
'\r\n', so using the system's line separator didn't work. Now using
Character's isWhitespace method instead.