Check that there really is some data before storing it
Do not add newline when copying clipboard data to file