changed Scanner token into StringTokenizer token