cleaning trailing ws
added command for trimming whitespace