allows string argument in allNodes

As discussed in #48