handle whitespaces