it reads words separated by punctuation marks. Hence the regex \\p{Punct} should do the trick. But I fail the test.