This is a proof of concept for how to use a problem I've seen referred to as "longest common substring" to display the diff between two different strings.
I was inspired to play around with this idea when I watched this video about how to use an academic CS concept called dynamic programming in real life.