Add helper for replacing cmd or command with cmd symbol