Add utility function to strip empty lines from a textarea