function isEmpty(data) { for (var i=0; i < data.length; i++) { if (data.substring(i, i+1) != " ") return(false); } return(true); } }