I have the following kind of link:

<http://myexampple.com/gallery/overview/portrait#>

Where the word `portrait` changes, it is dynamic depending on custom post. I need to capitalize the first letter of it so I get:

<http://myexampple.com/gallery/overview/Portrait#>

any idea how to do it?