A plumb-bob is a simple tool that is used to establish whether something is “plumb” (exactly vertical).
When the string is attached to a static object and the plumb-bob weight is suspended below, the laws of gravity will ensure that the string is both vertical and perpendicular to any horizontal plane through which it passes.