assert nodeStr function input