Remove the slash from the last part of url