and taken directly from the reference on this website.
this is the rest. I'm having a lot of time consuming issues with char and String.
A string has 23.98 or could have 123.49 I want to just have the 23 or 123
I don't want the period I can lop off the decimals by sub stringing the 123 but that leaves 23.98 looking like 23. and that wastes a space. I tried isnan but that doesn't work on strings apparently.
Solution: replace them with the correct character (' = apostrophe):
good catch, there were two pieces of example in the reference, I was playing with both and they got run together some how. these are what I meant to copy.
String reportString = "SensorReading: 456";
int colonPosition = reportString.indexOf(':');
reportString.setCharAt(colonPosition, '=');
String reportString = "Franklin, Benjamin";
int spacePosition = reportString.indexOf(' ');
if (reportString.charAt(spacePosition + 1) == 'B') {
Serial.println("You might have found the Benjamins.")
}