Copy to / paste from clipboard, remove trailing whitespace