Allow currency prefix and suffix.

This commit allows the currency symbol to appear either at the beginning or end
(or both, but that should be rare).