Implemented currencyCheck() function.