removing whitespaces during preprocessing