trim-leading-lines

Trim leading lines from a string when they are 100% whitespace or empty.

trim-whitespace

Remove leading and/or trailing spaces and tabs from each line of a string