Finished node selection by substring; borrowed code from Jareds goto project