NAME is the name of section in table of contents and in text:
\section{NAME}

NAME1 is the name of section in table of contents and NAME2 is the name of section in text:
\section[NAME1]{NAME2}