modified comparison highlight logic

This commit adds greater precision in the text highlighted as changes by the original version of the gem.