Instead of removing a dot here, add one. Then you can pass in just the name of the command.