fixed trim bug
Merge pull request #2 from nazomikan/patch-1

Fixed `trim` bug of slash at the end of the url