add endsWith method
Merge pull request #7 from paulocesar/master

add endsWith method