Implementing formatting for currency entry