Trim multiple slashes at the end