$myString = " Hello there! "; $cleanString = \TYPO3\CMS\Core\Utility\GeneralUtility::fixed_lgd_cs($myString); echo $cleanString; //echoes "Hello there!"In this example, the $myString variable contains a string with multiple spaces before and after the text. The fixed_lgd_cs function is called using the GeneralUtility class, passing in the string variable as the parameter. The function returns the cleaned up string, which is then echoed out to the screen. This function is a part of the TYPO3 CMS core utility library.