The String Compare equation examines two given strings to see if they are equal to each other.
INSTRUCTIONS: Enter the following
- (S1) String 1
- (S2) String 2
Compare Result (C): The equation will return a message stating whether or not the strings match.
- If the string length does not match > "Strings are not the same length"
- If the string length does match but the characters are not equal > "The strings do not match starting at character ___"
COMMON PROBLEMS:
- Spaces and other whitespace characters will be counted as characters
- Punctuation will be counted as characters
EXAMPLE:
- S1 = carrot
- S2 = carret
- C = "The strings do not match starting at character 5"
String Manipulation Equations: