The string equality comparison design pattern should be used in the following cases, when:
- You want to compare two different strings for equality.
- The string length is larger than the two characters.
- There could be multiple sizes of strings passed to a function and we want to have the gas-optimized solution.