Now using nestStr and nestStrParen where appropriate.