I'm sorry, I don't know what you're asking, but your first example screams "use arrays". (And whispers "don't use Strings"))