I've got two strings like this:
string1 = "Foo Bar"
string2 = "Foo BBar"
How do I compare them to see the difference? If I just compare string1[i]
to string2[i]
I just end up with the last Word "Bar" being different, as, for example, string1[5]
isn't the same as string2[5]
, and so on.
Is there a way to just output "B"?