Added substring
changed phrasing in Note of README.md
Fix bug in compare logic
Add substr test