Added a $ in the regex used to find a command