remove superfluous '/' and ';'