removing of white space chars and fix of term colors