To measure windows for replacement, first ... If a window is not plumb or level, you may need to make adjustments to the opening, such as inserting wedge-shaped pieces of material called shims ...