validate textbox for spaces only

how do i validate if my text box has only spaces in it? I've validated for an empty text box, but how do I validate for a text box with only spaces.I want the text box to behave similar to an empty text box if the entered string is only spaces.Thanks.
 
Top