[TASK] Add trim() to TitleTagViewHelper

Change-Id: I0d4f27e615e041e406701832c0f7c9873315efbf
Resolves: #50357
Reviewed-on: https://review.typo3.org/22530
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer