update function amount_to_letter()