leading and trailing whitespace is preserved in selection