using a script to remove whitespaces