Remove unwanted slashes and handle Exceptions