remove closing slashes