Membranes strip?

How do they do this? Does it hurt? I’m 40 weeks on Wednesday and my doctor hasn’t mentioned it at all