remove unnecessary slashes