I am trying to make an expense calculator, where the user will simply type their expenses in this format "add Entertainment Movies 15" and the output will be printed as "Entertainment Movies $15.0". Since this user could enter any text I wanted to make this dynamic where as soon as a number is found like 15 in this case, the $ sign gets put in front of it.
Just wondering what is the right approach of doing it in Swift?