Fix snippet trimming

Was failing when prefix was ‘f’ and caption was ‘moveLeft’