removes unnecessary slash