Parse currency

Removed code duplication in currency parsing!