Triming ending slash in URL