handle commas, whitespaces in text inputs