changed find/rfind to return -1 for matches outside the source string
2 files changed