typeof undefined should be a string