replace middle dots.