Java: easy penultmiate word