Board Thread:Support Requests - Getting Technical/@comment-27704998-20160604211104/@comment-1757994-20160605094541

It's just an if. There's no nesting, because there's only 1 if, with 1 then and 1 else.

ucfirst works on the first character it sees. In your version, the first character it sees is [, so that's what it up-cases.

Consider Main page, which gives Main page.