Replace a hand rolled loop with a lovely StringRef helper we have these