trimming ws and some ssh options for easier automation