javascript check if string is not null or undefined