removes unnessary whitespaces