In cancer diagnostics, string sequences are used for various tests, including PCR, sequencing, and microarrays. These tests detect specific genetic mutations or expression patterns that are indicative of cancer. For example, the presence of certain string sequences in a biopsy sample can help diagnose types of cancer and guide treatment decisions.