removing unnecessary slashes