Added a factory method CurrencyPair::createFromString