Java: Extracting pairs of words using String.split() | Hacker News Reader