In this blog, I take notes as I learn new skills for Android, Java, Python, Linux, SBC, Mac, Machine Learning and AI.
To split a String into words (tokens) where delimiter is white space...
String delims = "[ ]+";
String tokens = someLongString.split(delims);
Now you can look thru the tokens and do comparisons, etc.