fix whitespaces in string