How to trim an empty line from a string

Did you find the ‘String: Trim characters’ mapper?
Or was it not sufficient?

Otherwise maybe a quick regex could’ve fixed it?