Trim() is exactly that, it "trims" your string...ltrim() and rtrim() trims spaces from the left and right respectively, while trim() trims from both sides.

His code basically checks to make sure that the string isn't *just* spaces :-)