drop unused stripwhitespace function and change clipboard to also work on Ubuntu