remove the last separator