Add a function to stip whitespaces.