add/remove stray characters from paste