Javascript Test If String Not Empty List