Found bug in getLineNumber() causing final word in dictionary to not get stripped.