Remove blank space from currency format

Hello, using format=currency for one model attribute, I don’t agree with ICU currency format for my country in one aspect: The blank space that it puts after the currency symbol.

Current output: $ 560

Desired output: $560

How do I remove that blank space? So far I haven’t been able to find one property here that would allow me to change it: http://php.net/manual/en/class.numberformatter.php

Maybe only the function setPattern, but I don’t see that function being used internally on vendor/yiisoft/yii2/i18n/Formatter.php so I’m not sure what is the right path to follow.

Any advice is highly appreciated! Thank you.