javascript handling of blank strings