detab and remove whitespaces