Now that we know how to shuffle, we can discuss string masks.
Remember that SSE provides two string manipulation instructions that use a mask: pcmpistrm and pcmpestrm. We will be using implicit length instructions. At first, using masks looks complicated, but once you get the hang of it, you will see how powerful masking can be.