Door jamb switch length?

Ya, your new one should push in to be the correct length. They come long and need to be pushed in to fit. Some guys just put some tape on the door and smoothly close the door and it self adjusts.