Parse strings formatted as currencies in Ruby.