Improved function update_title_text.
Improved function update_title_text.


Former-commit-id: 687976d713c76a04bd3e571e7753e9a5c82f4357
neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox,neuropoly/spinalcordtoolbox