It can be hard to notice where two strings are different in the Apps Script logger. We can borrow JsDiff to help with that.

I’ll be using the cjsDiff library

M9zcCXivXIkjpW_mA_X1Vtiz3TLx7pV4j

You can report on any combination of additions, deletions or no changes. This example does them all.

And the result

If that doesn’t quite do it for you, There are various options you can use as documented here

For more like this see Google Apps Scripts Snippets
Why not join our forum, follow the blog or follow me on Twitter to ensure you get updates when they are available.