Update WordToSentenceProcessor.java

fixing the type issue