remove periods and commas from input