trimBlankLines

Removes the leading and trailing blank lines of a string, preserving any other whitespace.

Example: "\n\n Hello \n \n" ->" Hello "

Return

this string without its leading and trailing blank lines