remove spaces and add tabs