Selection support trim empty lines and trim leading leading whitespace.