String reportString = "Franklin, Benjamin"; int spacePosition = reportString.indexOf(' '); if (reportString.charAt(spacePosition + 1) == 'B') { Serial.println("You might have found the Benjamins.") }