Trimming received commands