Professional builders use a plumb bob to make sure their walls are vertical. Here's how. Measure two inches away from the top of your wall, set a nail, and hang the plumb bob. Let gravity draw the string into a vertical reference line. When the plumb bob falls exactly two inches away at the floor, your wall will be plumb.
For more on tools, consider:
Radio: Plumb Bob
7 Essential Tools for Any Measuring Job