Remove type from command matching pseudo code