trim url to get rid of slash