removes duplicated slash