Due to circumstances out of my control, SharePoint, I have the following piece of code.
var item = $(\' <
Try checking for '\xa0' (which is the character created by ):
'\xa0'
var item = $(" ").text(); alert("'" + item + "' " + (item == '\xa0'));
http://jsfiddle.net/hUBeP/3/