Modifying regex that check amount and adding a thousand separator for amounts