fix binds for removing prepending whitespace and CR at line endings
changed bindings for removing CR endings, indentations and appended whitespaces, plus fix CWD