Cleanup header.php code by cleaning repeat syntax.

The code was redundant so I created the title into a string instead of repeating the logic code twice.