Use more bulletproof caret is at start of node detection