Imagine your friend has written a program that checks whether an input string is some monetary amount (in US dollars).
However, the program doesn't work the way it's expected to! Can you solve the issue?
Tip: + is a quantifier, it means ''the preceding character should appear one or more times".