modified undefined is not string undefined