remove whitespaces from data before hashed