Ext.util.Format.currency documentation states that it allows string or numbers to be passed in. Passing a string causes an exception.

Ext.util.Format.currency("10", '$', 2)