javascript check if string is not null and not empty