StreamTokenizer class. The StringTokenizer methods do not distinguish among identifiers, numbers, and quoted strings, nor do they recognize and skip comments.String Tokenizer Tutorial video
StreamTokenizer class. The StringTokenizer methods do not distinguish among identifiers, numbers, and quoted strings, nor do they recognize and skip comments.yourString.replace("", " ").trim();Above code just replacing all empty place with Space & remove starting space with trim method